package com.sizu.web;


import com.sizu.common.vo.ResultEntity;
import com.sizu.entity.CgBrand;
import com.sizu.service.ICgBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 赵玉玺
 * @since 2020-03-24
 */
@RestController
@RequestMapping("/goods/cgBrand")
public class CgBrandController {

    @Autowired
    private ICgBrandService iCgBrandService;

    @RequestMapping("/list")
    public ResultEntity cgBrandList(){
        List<CgBrand> all = iCgBrandService.findAll();
        return ResultEntity.ok("查询成功",all);
    }
}
